Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    list: {
      type: Array,
      value: []
    },
    active: {
      type: Number,
      value: 0
    }
  },
  data: {},
  methods: {
    close () {
      this.triggerEvent('close')
    },
    selectFilter ({ currentTarget: { dataset: { item } } }) {
      this.triggerEvent('select', item)
    }
  },
})